<?php
class CultivationResearchVo extends SzAbstractMySqlVo
{

    private $userId;
    private $luckNum;
    private $itemId;
    private $submitNum;
    private $changeTime;
    private $coolingTime;
    private $flowerId;
    private $flowerNum;
    private $isReward;

    /**
     * Initialize CultivationResearchVo.
     *
     * @param $userId
     * @param $luckNum
     * @param $itemId
     * @param $submitNum
     * @param $changeTime
     * @param $coolingTime
     * @param $flowerId
     * @param $flowerNum
     * @param $isReward
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return CultivationResearchVo
     */
    public function __construct($userId, $luckNum, $itemId, $submitNum, $changeTime, $coolingTime, $flowerId, $flowerNum, $isReward, $isInsert = false) {
        $this->userId = $userId;
        $this->luckNum = $luckNum;
        $this->itemId = $itemId;
        $this->submitNum = $submitNum;
        $this->changeTime = $changeTime;
        $this->coolingTime = $coolingTime;
        $this->flowerId = $flowerId;
        $this->flowerNum = $flowerNum;
        $this->isReward = $isReward;

        $this->isInsert = $isInsert;
        $this->voClassName = 'CultivationResearchVo';
        $this->ormName = 'CultivationResearch';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'luckNum' => $this->getLuckNum(),
            'itemId' => $this->getItemId(),
            'submitNum' => $this->getSubmitNum(),
            'changeTime' => $this->getChangeTime(),
            'coolingTime' => $this->getCoolingTime(),
            'flowerId' => $this->getFlowerId(),
            'flowerNum' => $this->getFlowerNum(),
            'isReward' => $this->getIsReward(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'luckNum' => $this->getLuckNum(),
            'itemId' => $this->getItemId(),
            'submitNum' => $this->getSubmitNum(),
            'changeTime' => $this->getChangeTime(),
            'coolingTime' => $this->getCoolingTime(),
            'flowerId' => $this->getFlowerId(),
            'flowerNum' => $this->getFlowerNum(),
            'isReward' => $this->getIsReward(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getLuckNum(),
            $this->getItemId(),
            $this->getSubmitNum(),
            $this->getChangeTime(),
            $this->getCoolingTime(),
            $this->getFlowerId(),
            $this->getFlowerNum(),
            $this->getIsReward(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getLuckNum()
    {
        return $this->luckNum;
    }

    public function setLuckNum($val)
    {
        $this->saveColumnStatus(1, $this->luckNum);
        $this->luckNum = $val;
    }

    public function getItemId()
    {
        return $this->itemId;
    }

    public function setItemId($val)
    {
        $this->saveColumnStatus(2, $this->itemId);
        $this->itemId = $val;
    }

    public function getSubmitNum()
    {
        return $this->submitNum;
    }

    public function setSubmitNum($val)
    {
        $this->saveColumnStatus(3, $this->submitNum);
        $this->submitNum = $val;
    }

    public function getChangeTime()
    {
        return $this->changeTime;
    }

    public function setChangeTime($val)
    {
        $this->saveColumnStatus(4, $this->changeTime);
        $this->changeTime = $val;
    }

    public function getCoolingTime()
    {
        return $this->coolingTime;
    }

    public function setCoolingTime($val)
    {
        $this->saveColumnStatus(5, $this->coolingTime);
        $this->coolingTime = $val;
    }

    public function getFlowerId()
    {
        return $this->flowerId;
    }

    public function setFlowerId($val)
    {
        $this->saveColumnStatus(6, $this->flowerId);
        $this->flowerId = $val;
    }

    public function getFlowerNum()
    {
        return $this->flowerNum;
    }

    public function setFlowerNum($val)
    {
        $this->saveColumnStatus(7, $this->flowerNum);
        $this->flowerNum = $val;
    }

    public function getIsReward()
    {
        return $this->isReward;
    }

    public function setIsReward($val)
    {
        $this->saveColumnStatus(8, $this->isReward);
        $this->isReward = $val;
    }

}